import request from '@/utils/request'
export function getPoleListAPI(params) {
  return request({
    url: 'pole/info/list',
    params
  })
}

export function getCarAreaList() {
  return request.get('parking/area/dropList')
}

export function addPoleInfoAPI(data) {
  return request.post('/pole/info',data)
}

export function delPoleInfoAPI(id) {
    if(Array.isArray(id)){
        return request.delete(`/pole/info/${id.join(',')}`)
    }
  return request.delete(`/pole/info/${id}`)
}

export function updatePoleInfoAPI(data) {
  return request.put('/pole/info',data)
}

